//
// Created by yasin on 2024/9/9.
//

#ifndef WEBRTC_CLIENT_RTC_BASE_THREAD_H_
#define WEBRTC_CLIENT_RTC_BASE_THREAD_H_

#include <memory>
#include <functional>

namespace rtc {
class Thread {
 public:
  inline static std::unique_ptr<Thread> CreateWithSocketServer() {
    return std::make_unique<Thread>();
  }

  void Start() {
  }

  bool IsCurrent() {
    return true;
  }

  void SetName(const std::string &name, void* data) {
  }

  void PostTask(std::function<void()> fn) {
    fn();
  }
};
}

#endif //WEBRTC_CLIENT_RTC_BASE_THREAD_H_
